# -*- coding: utf-8 -*-
import time
from selenium import webdriver
import unittest
from Page.financingplatformloginPage import financingplatformloginPage
from publicModule.financingplatformlogin import financingplatformlogin

class Test_FinancingPlatformLogin(unittest.TestCase):

    @classmethod
    def setUpClass(self):
        print('资金平台')
        self.driver = webdriver.Chrome()
        self.driver.implicitly_wait(10)
        self.driver.maximize_window()
        self.driver.get("http://10.22.26.45:7002/fwd-front/bizframe/jsp/login.jsp")
        time.sleep(1)
        self.financingplatformloginPage=financingplatformloginPage(self.driver)


    @classmethod
    def tearDownClass(self):
        print('结束测试')
        self.driver.quit()
    #登录
    def test01(self):
        print('test01')
        LoginName = 'fwdtest1'
        Password = 'Fwd123456'
        financingplatformlogin.financingplatformlogin(self, LoginName, Password)






if __name__ =='__main__':
    suite = unittest.TestLoader.loadTestsFromTestCase(Test_FinancingPlatformLogin)
    unittest.TextTestRunner().run(suite)
    # unittest.main()